package com.jmye.spring.service;

import com.jmye.spring.dao.UserDao;
import com.jmye.spring.dao.UserDaoImpl;
import com.jmye.spring.factory.BeanFactory;

/**
 * @Description
 * @Date 2024/12/12 下午10:58
 * @Author jmye
 */
public class UserServiceImpl implements UserService{

    private UserDao userDao;

    @Override
    public void save() {
        userDao = (UserDao) BeanFactory.getBean("userDao");
        userDao.save();
    }
}
